<template>
	<view :style="themeColor">
		<view class="page">
			<view class="flex benben-position-layout flex flex-wrap align-center publishBidding_flex_0"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
				<view class='flex flex-wrap align-center justify-between flex-sub publishBidding_fd0_0'>
					<view class='flex flex-wrap align-center publishBidding_fd0_0_c0' @tap.stop="handleJumpDiy"
						data-type="back" data-url="1">
						<text class='fu-iconfont2  publishBidding_fd0_0_c0_c0'>&#xE794;</text>
					</view>
					<view class='flex flex-wrap align-stretch justify-center'>
						<text class='publishBidding_fd0_0_c1_c0'>发布招标</text>
					</view>
					<view class='flex flex-wrap align-center justify-end publishBidding_fd0_0_c0'>
					</view>
				</view>

			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
			<benben-popup v-model="popupShow1695798376701" :mask="true" :mask-close-able="true" mode='bottom'
				:z-index='999'>
				<!---flex布局flex布局开始-->
				<view class="flex benben-flex-layout flex-wrap align-center">
					<view class='flex flex-direction flex-wrap align-stretch publishBidding_fd1_0'>
						<view class='flex flex-wrap align-center justify-between publishBidding_fd1_0_c0'>
							<view class='flex flex-wrap align-center publishBidding_fd1_0_c0_c0'>
							</view>
							<text class='publishBidding_fd1_0_c0_c1'>支付并发布</text>
							<image class='publishBidding_fd1_0_c0_c2' mode="aspectFit" :src='STATIC_URL+"71.png"'
								@tap.stop="popupShow1695798376701=false"></image>
						</view>
						<view class='flex flex-direction flex-wrap align-stretch publishBidding_fd1_0_c0'>
							<view class='flex flex-wrap align-end publishBidding_fd1_0_c1_c0'>
								<text class='publishBidding_fd1_0_c1_c0_c0'>保证金：</text>
								<text class='publishBidding_fd1_0_c1_c0_c1'>￥</text>
								<text class='publishBidding_fd1_0_c1_c0_c2'>{{cankaojia}}</text>
							</view>
							<view class='flex flex-wrap align-center'>
								<text class='publishBidding_fd1_0_c1_c1_c0'>同意</text>
								<text class='publishBidding_fd1_0_c1_c1_c1'>《平台竞价协议》《退保证金说明》</text>
							</view>
						</view>
						<button class='publishBidding_fd1_0_c2' @tap.stop="set_buyzhaobiao">确认缴纳</button>
					</view>
				</view>

				<!---flex布局flex布局结束-->

			</benben-popup>
			<!---flex布局flex布局开始-->
			<view class="flex flex-direction flex-wrap align-stretch benben-flex-layout publishBidding_flex_2">
				<view class='flex flex-direction flex-wrap align-stretch publishBidding_fd2_0'>
					<text class='publishBidding_fd2_0_c0'>招标标题</text>
					<view class='flex flex-wrap align-center publishBidding_fd2_0_c1'>
						<input type="text" :placeholder="`请输入标题`" confirm-type="done" :maxlength="-1"
							placeholder-style="color:rgba(153, 153, 153, 1);font-size:28rpx" v-model="biaoti" />
					</view>
				</view>
				<view class='flex flex-direction flex-wrap align-stretch publishBidding_fd2_0'>
					<view class='flex flex-wrap align-center justify-between publishBidding_fd2_1_c0'>
						<text class='publishBidding_fd2_1_c0_c0'>商品图片</text>
						<text class='publishBidding_fd2_1_c0_c1'>+上传图片</text>
					</view>
					<benben-images-upload ref="benbenImagesUploadfd2_1_c1" :maxlength="9" :img-ids.sync="thumb"
						:img-list.sync="fengmian" :is-show-tips='true'>
						<template #content="{ num, maxlength, isShow, imgList }">
							<view class="flex flex-wrap align-start flex publishBidding_fd2_1_c1">

								<view v-for="(image, index) in imgList" :key="index"
									class='flex position-relative publishBidding_fd2_1_c10'>
									<text class='fu-iconfont2 position-absolute publishBidding_fd2_1_c100'
										@tap.stop="$refs.benbenImagesUploadfd2_1_c1.delImage(index)">&#xE8E7;</text>
									<image class='publishBidding_fd2_1_c101'
										@tap.stop="$refs.benbenImagesUploadfd2_1_c1.previewImage(index)"
										mode="aspectFill" :src='image'></image>
								</view>

								<image class='publishBidding_fd2_1_c11'
									@tap.stop="$refs.benbenImagesUploadfd2_1_c1.manyChooseImage()" v-if="isShow"
									mode="aspectFit" :src='STATIC_URL+"60.png"'></image>

							</view>
						</template>
					</benben-images-upload>
					<text class='publishBidding_fd2_1_c2'>商品内容</text>
					<view class='flex flex-wrap publishBidding_fd2_1_c3'>
						<textarea class='flex publishBidding_input_fd2_1_c3' :placeholder="'请输入'" :maxlength="240"
							:show-num='true' placeholder-style="color:rgba(153, 153, 153, 1);font-size:28rpx"
							v-model="xiangqing" />
						<template>
							<view class='flex flex justify-end publishBidding_numberfd2_1_c3_c0'>
								<text>{{xiangqing.length}}</text>
								<text>/</text>
								<text>240</text>
							</view>
						</template>
					</view>
					<text class='publishBidding_fd2_1_c2'>招标配置</text>
					<view class='flex flex-direction flex-wrap align-stretch'>
						<view class='flex flex-wrap align-center publishBidding_fd2_1_c5_c0'>
							<text class='publishBidding_fd2_1_c5_c0_c0'>开始时间</text>
							<text class='publishBidding_fd2_1_c5_c0_c1'>结束时间</text>
						</view>
						<view class='flex flex-wrap align-center'>
							<view class='flex flex-wrap align-center publishBidding_fd2_1_c5_c1_c0'
								@tap.stop="pickerDiyjieshu1723691436271 = true">
								<!-- <input type="text" :placeholder="`请选择开始时间`" confirm-type="done" :maxlength="-1"
									placeholder-style="color:rgba(153, 153, 153, 1);font-size:28rpx"
									v-model="kaishishijian" /> -->
									<text style="color:rgba(153, 153, 153, 1);font-size:28rpx">{{kaishishijian?kaishishijian:'请选择开始时间'}}</text>
							</view>
							<view class='flex flex-wrap align-center publishBidding_fd2_1_c5_c1_c1'>
								<text style="color:rgba(153, 153, 153, 1);font-size:28rpx">{{jieshushijian?jieshushijian:'请选择开始时间'}}</text>
							</view>
						</view>
						<text class='publishBidding_fd2_1_c5_c2'>保证金</text>
						<view class='flex flex-wrap align-center'>
							<view class='flex flex-wrap align-center publishBidding_fd2_1_c5_c1_c0'>
								<input type="text" :placeholder="`请输入保证金额`" confirm-type="done" :maxlength="-1"
									placeholder-style="color:rgba(153, 153, 153, 1);font-size:28rpx" v-model="cankaojia" />
							</view>
							<text class='publishBidding_fd2_1_c5_c3_c1'>元</text>
						</view>
					</view>
				</view>
				<view class='flex flex-wrap align-center justify-center publishBidding_fd2_2'>
					<button class='publishBidding_fd2_2_c0' @tap.stop="popupShow1695798376701=true">发布招标</button>
				</view>
			</view>
			<!---flex布局flex布局结束-->
		</view>
		<!--开始时间选择器开始 -->
		<benben-picker ref="benbenWritePickerCodepicker3" :visible.sync="pickerDiyjieshu1723691436271" mode='date'
			:mask-show='true' :timeout='true' :picker-height='88' :current='true' start-year='2022-1-1'
			end-year='2080-12-31' :value.sync="kaishishijian">
			<template #picker-header>
				<view class='flex flex-wrap align-center justify-between fieldApplication_picker2_0'>
					<text @tap="$refs.benbenWritePickerCodepicker3.cancel()">取消</text>
					<text>开始时间</text>
					<text class='fieldApplication_picker2_0_c2'
						@tap="$refs.benbenWritePickerCodepicker3.pickerConfirm()">确认</text>
				</view>
			</template>
		</benben-picker>
		<!--开始时间选择器结束 -->

		<!--结束时间选择器开始 -->
		<benben-picker ref="benbenWritePickerCodepicker4" :visible.sync="pickerDiy123shu1723691436271" mode='date'
			:mask-show='true' :timeout='true' :picker-height='88' :current='true' start-year='2022-1-1'
			end-year='2080-12-31' :value.sync="jieshushijian">
			<template #picker-header>
				<view class='flex flex-wrap align-center justify-between fieldApplication_picker2_0'>
					<text @tap="$refs.benbenWritePickerCodepicker4.cancel()">取消</text>
					<text>结束时间</text>
					<text class='fieldApplication_picker2_0_c2'
						@tap="$refs.benbenWritePickerCodepicker4.pickerConfirm()">确认</text>
				</view>
			</template>
		</benben-picker>
		<!--结束时间选择器结束 -->
	</view>
</template>
<script>
	export default {
		components: {},


		data() {
			return {
				biaoti: '',
				"xiangqing": "",
				"popupShow1695798376701": false,
				thumb: '',
				fengmian: [],
				pickerDiyjieshu1723691436271: false,
				pickerDiy123shu1723691436271: false,
				kaishishijian: '',
				jieshushijian: '',
				cankaojia:'',
			};
		},
		computed: {
			themeColor() {
				return this.$store.getters.themeColor
			},

		},
		watch: {},
		onLoad(options) {

		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {

		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			// /pages/zfmk/offerPay/offerPay?id=1
			set_buyzhaobiao(){
				let arr = {
					biaoti:this.biaoti,
					xiangqing:this.xiangqing,
					fengmian:JSON.stringify(this.fengmian),
					cankaojia:this.cankaojia,
					kaishishijian:this.kaishishijian,
					jieshushijian:this.jieshushijian
				}
				this.$api.post('/m6752/66700eaa101eb',arr).then(res=>{
					if(res.data.code == 1){
						this.popupShow1695798376701 = false
						uni.switchTab({
							url:'/pages/tabBar/convenientPeople/convenientPeople'
						})
					}else{
						this.$message.info(res.data.msg)
					}
				})
			},
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: #F8F8F8;
		background-size: 100% auto;
	}

	.fieldApplication_picker2_0_c2 {
		font-weight: 500;
		font-size: 32rpx;
		color: #02AFFF;
	}

	.fieldApplication_picker2_0 {
		border-bottom: 1px solid #eee;
		background: #fff;
		padding: 0rpx 32rpx 0rpx 32rpx;
		line-height: 110rpx;
		border-radius: 25rpx 25rpx 0rpx 0rpx;
		background-size: 100% auto !important;
	}

	.publishBidding_flex_0 {
		background: #fff;
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.publishBidding_fd0_0_c1_c0 {
		font-size: 36rpx;
		font-weight: 500;
		color: #333333;
		line-height: 36rpx;
	}

	.publishBidding_fd0_0_c0_c0 {
		font-size: 36rpx;
		color: #333;
	}

	.publishBidding_fd0_0_c0 {
		width: 120rpx;
	}

	.publishBidding_fd0_0 {
		padding: 0rpx 32rpx 0rpx 32rpx;
	}

	.publishBidding_fd1_0_c2 {
		background: #FC5F80;
		border-radius: 60rpx 60rpx 60rpx 60rpx;
		width: 638rpx;
		line-height: 88rpx;
		font-size: 32rpx;
		color: #fff;
		height: 88rpx;
		font-weight: 500;
		margin: 0rpx 0rpx 0rpx 32rpx;
	}

	.publishBidding_fd1_0_c1_c1_c1 {
		color: #FC5F80;
		font-size: 22rpx;
		font-weight: 400;
		line-height: 32rpx;
	}

	.publishBidding_fd1_0_c1_c1_c0 {
		color: var(--benbenFontColor2);
		font-size: 22rpx;
		font-weight: 400;
		line-height: 32rpx;
	}

	.publishBidding_fd1_0_c1_c0_c2 {
		color: #EA3727;
		font-size: 54rpx;
		font-weight: 700;
		line-height: 45rpx;
	}

	.publishBidding_fd1_0_c1_c0_c1 {
		color: #EA3727;
		font-size: 36rpx;
		font-weight: 700;
		line-height: 36rpx;
	}

	.publishBidding_fd1_0_c1_c0_c0 {
		color: #999999;
		font-size: 24rpx;
		font-weight: 400;
		line-height: 32rpx;
	}

	.publishBidding_fd1_0_c1_c0 {
		margin: 0rpx 0rpx 30rpx 0rpx;
	}

	.publishBidding_fd1_0_c0_c2 {
		width: 40rpx;
		height: 40rpx;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
	}

	.publishBidding_fd1_0_c0_c1 {
		color: #333333;
		font-size: 32rpx;
		font-weight: 500;
		line-height: 40rpx;
	}

	.publishBidding_fd1_0_c0_c0 {
		width: 40rpx;
		height: 40rpx;
	}

	.publishBidding_fd1_0_c0 {
		margin: 0rpx 0rpx 48rpx 0rpx;
	}

	.publishBidding_fd1_0 {
		background: #FFFFFF;
		border-radius: 24rpx 24rpx 0rpx 0rpx;
		width: 750rpx;
		padding: 40rpx 32rpx 40rpx 32rpx;
	}

	.publishBidding_flex_2 {
		padding: 24rpx 24rpx 130rpx 24rpx;
	}

	.publishBidding_fd2_2_c0 {
		background: #FC5F80;
		border-radius: 60rpx 60rpx 60rpx 60rpx;
		width: 638rpx;
		line-height: 88rpx;
		font-size: 32rpx;
		color: #fff;
		height: 88rpx;
		font-weight: 500;
		margin: 0rpx 0rpx 32rpx 0rpx;
	}

	.publishBidding_fd2_2 {
		background: var(--benbenbgColor0);
		margin: 0rpx -24rpx 0rpx -24rpx;
		width: 750rpx;
		height: 120rpx;
		position: fixed;
		bottom: calc(0rpx + var(--window-bottom));
		background-size: 100% auto;
	}

	.publishBidding_fd2_1_c5_c3_c1 {
		margin: 0rpx 0rpx 0rpx 16rpx;
		color: #333333;
		font-size: 28rpx;
		font-weight: 400;
	}

	.publishBidding_fd2_1_c5_c2 {
		color: #333333;
		font-size: 24rpx;
		font-weight: 400;
		margin: 24rpx 0rpx 20rpx 0rpx;
	}

	.publishBidding_fd2_1_c5_c1_c1 {
		background: #F8F8F8;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
		width: 322rpx;
		height: 80rpx;
		padding: 0rpx 0rpx 0rpx 24rpx;
		margin: 0rpx 0rpx 0rpx 10rpx;
	}

	.publishBidding_fd2_1_c5_c1_c0 {
		background: #F8F8F8;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
		width: 322rpx;
		height: 80rpx;
		padding: 0rpx 0rpx 0rpx 24rpx;
	}

	.publishBidding_fd2_1_c5_c0_c1 {
		color: #333333;
		font-size: 24rpx;
		font-weight: 400;
	}

	.publishBidding_fd2_1_c5_c0_c0 {
		color: #333333;
		font-size: 24rpx;
		font-weight: 400;
		margin: 0rpx 236rpx 0rpx 0rpx;
	}

	.publishBidding_fd2_1_c5_c0 {
		margin: 0rpx 0rpx 20rpx 0rpx;
	}

	.publishBidding_numberfd2_1_c3_c0 {
		width: 100%;
		font-size: 24rpx;
		color: var(--benbenFontColor2);
		line-height: 46rpx;
		font-weight: 400;
	}

	.publishBidding_input_fd2_1_c3 {
		width: 100%;
		height: 195rpx;
		font-size: 28rpx;
		font-weight: 400;
		color: #333;
		white-space: pre-wrap;
	}

	.publishBidding_fd2_1_c3 {
		background: rgba(245, 245, 245, 1);
		padding: 24rpx 24rpx 24rpx 24rpx;
		border-radius: 16rpx;
	}

	.publishBidding_fd2_1_c2 {
		color: #333333;
		font-size: 28rpx;
		font-weight: 500;
		line-height: 32rpx;
		margin: 32rpx 0rpx 24rpx 0rpx;
	}

	.publishBidding_fd2_1_c11 {
		width: 216rpx;
		height: 216rpx;
		margin: 0rpx 0rpx 6rpx 0rpx;
		border-radius: 16rpx;
	}

	.publishBidding_fd2_1_c101 {
		width: 216rpx;
		height: 216rpx;
		border-radius: 16rpx;
	}

	.publishBidding_fd2_1_c100 {
		top: 0rpx;
		right: 0rpx;
		z-index: 10;
		color: rgba(242, 242, 242, 1);
		margin: 10rpx 10rpx 0rpx 0rpx;
		font-size: 46rpx;
	}

	.publishBidding_fd2_1_c10 {
		margin: 0rpx 12rpx 6rpx 0rpx;
		width: 216rpx;
		height: 216rpx;
		border-radius: 16rpx;
	}

	.publishBidding_fd2_1_c10:nth-child(3n) {
		margin: 0rpx 0 6rpx 0rpx;
	}

	.publishBidding_fd2_1_c1 {
		margin: 0rpx -12rpx 0rpx 0rpx;
	}

	.publishBidding_fd2_1_c0_c1 {
		color: #FC5F80;
		font-size: 24rpx;
		font-weight: 400;
		line-height: 32rpx;
	}

	.publishBidding_fd2_1_c0_c0 {
		color: #333333;
		font-size: 28rpx;
		font-weight: 500;
		line-height: 32rpx;
	}

	.publishBidding_fd2_1_c0 {
		margin: 0rpx 0rpx 24rpx 0rpx;
	}

	.publishBidding_fd2_0_c1 {
		background: #F8F8F8;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
		width: 654rpx;
		height: 80rpx;
		padding: 0rpx 0rpx 0rpx 24rpx;
	}

	.publishBidding_fd2_0_c0 {
		color: #333333;
		font-size: 28rpx;
		font-weight: 500;
		line-height: 32rpx;
		margin: 0rpx 0rpx 24rpx 0rpx;
	}

	.publishBidding_fd2_0 {
		background: var(--benbenbgColor1);
		margin: 0rpx 0rpx 24rpx 0rpx;
		padding: 32rpx 24rpx 32rpx 24rpx;
		border-radius: 16rpx;
		background-size: 100% auto;
	}
</style>